<extend name="Public:base" />
<!--header end-->
<block name="title">
	<title>支付</title>
</block>


<block name="css">
	<link rel="stylesheet" href="__PUBLIC__css/confirm_order.css" />
</block>

<block name="js">
	<script>var bgurl = "__ROOT__/Public/Home/";</script>
	<script type="text/javascript" src="__PUBLIC__js/confirm_order-2.js"></script>
	<script type="text/javascript" src="__PUBLIC__js/nav_logo.js"></script>
</block>



<block name="body">
	<!--content-->
	<div class="content">
		<form class="form-horizontal" action="{:U('done')}" method="post">

		<div class="container">

			<!--menu组件-->
			{:W('Index/menu',array('logo_05.png'))}
			<div class="cart_text">

				<div class="row">
					<h4 style="margin-left: 20px;margin-top:20px">确认收货地址</h4>
					<div class="information">
						<ul id="addr">
							<volist name="address_list" id="vo">

							<li <eq name="vo.id" value="$default_id">class="cur"</eq> addr_id="{$vo.id}">
									<div class="place_message">
									<span class="shouhuo">当前收货地址</span>
									<p style="margin-top: 8px">姓名：{$vo.username}</p>

									<p>所在地区：{$vo.prov} {$vo.city} {$vo.dist} {$vo.address}</p>

									<p>邮编：{$vo.code}</p>

									<p>电话：{$vo.mobile}</p>

									</div>

<!--									<button addr_id="{$vo.id}" class="setup" >设为收货地址</button>-->
							</li>
							</volist>
						</ul>
                    </div>
				</div>
				<div class="row"><a href="{:U('add_address')}" id="more_addr" >+添加更多地址</a></div>
				<div class="row">




						<div class="col-sm-12">

							<h4>确认订单</h4>


						</div>

						<div class="text_list col-sm-12">

							<div class="col-sm-3">

								<p>商品图片</p>

							</div>

							<div class="col-sm-2">
								<p>商品信息</p>
							</div>

							<div class="col-sm-2">

								<p>单价</p>

							</div>

							<div class="col-sm-2">

								<p>数量</p>

							</div>

							<div class="col-sm-3">

								<p>总价</p>

							</div>

						</div>

						<ul class="lg_cart">

                            <volist name="order" id="vo">

                            <li>
                                <php>$goods_attr = json_decode($vo['goods_attr'],true); $store = $goods_attr[$vo['attr']];</php>
								<input type="hidden" name="id[]" value="{$vo['id']}" />
								<div class="text_product col-sm-12">
									<div class="col-sm-3">
										<div class="image">
											<a href="product_center.html"><img class="img-responsive" class="img-responsive" src="{$vo.img}"  /></a>
										</div>
									</div>
									<div class="col-sm-2">
										<p class="discount">尺码：{$vo.attr}，颜色：{$vo.color}</p>
									</div>
									<div class="col-sm-2">
										<p>
											<span>¥</span>&nbsp;
											<i class="singleprice">{$vo.goods_shop_price}</i>
										</p>
									</div>
									<div class="col-sm-2">
										<input name="number[]" style="margin-left:30px;" type="text" class="num pull-left" readonly="readonly" value="{$number[$vo['id']]}" />
									</div>
									<div class="text_price col-sm-3">
										<p>
											<span>¥</span>&nbsp;
											<i class="totalprice aprice"><php>$si = keepTwo($vo['goods_shop_price']*$number[$vo['id']]); $sum += $si;echo $si</php></i>
										</p>
									</div>
								</div>

							</li>
                            </volist>


						</ul>


				</div>

			</div>

<!--			手机端-->
			<div class="xs_cart">

				<div class="row">

					<form class="form-horizontal" role="form">

						<div class="col-xs-12">

							<h4>我的购物车</h4>

							<span>全部商品 </span>

						</div>

						<div class="text_list col-xs-12">

							<div class="col-xs-4">

								<label class="all_checked checkbox-inline">

									<input type="checkbox" />全选

								</label>

							</div>

							<div class="col-xs-3">

								<p>单价</p>

							</div>

							<div class="col-xs-2">

								<p>折扣</p>

							</div>

							<div class="col-xs-3">

								<p>总价</p>

							</div>

						</div>

						<ul>

							<li>

								<div class="text_product col-xs-12">

									<div class="col-xs-4">

										<div class="image">

											<a href="product_center.html"><img class="img-responsive" class="img-responsive" src="__PUBLIC__img/shopping_pic01.png" alt="shopping_pic01" /></a>

											<label class="xschecked_product checkbox-inline">

												<input type="checkbox" />

											</label>

										</div>

									</div>

									<div class="col-xs-3">

										<p>

											<span>¥</span><i class="singleprice">213.00</i>

										</p>

									</div>

									<div class="col-xs-2">

										<p>8.5</p>

									</div>

									<div class="text_price col-xs-3">

										<p>

											<span>¥</span>&nbsp;

											<i class="totalprice">149.00</i>

										</p>

									</div>

								</div>

							</li>

							<li>

								<div class="text_product col-xs-12">

									<div class="col-xs-4">

										<div class="image">

											<a href="product_center.html"><img class="img-responsive" class="img-responsive" src="__PUBLIC__img/shopping_pic02.png" alt="shopping_pic02" /></a>

											<label class="xschecked_product checkbox-inline">

												<input type="checkbox" />

											</label>

										</div>

									</div>

									<div class="col-xs-3">

										<p>

											<span>¥</span><i class="singleprice">213.00</i>

										</p>

									</div>

									<div class="col-xs-2">

										<p>8.5</p>

									</div>

									<div class="text_price col-xs-3">

										<p>

											<span>¥</span>&nbsp;

											<i class="totalprice">149.00</i>

										</p>

									</div>

								</div>

							</li>

						</ul>

					</form>

				</div>

			</div>

			<div class="checkout">

				<label class=" ">

					&nbsp;

				</label>

                <input name="address_id" type="hidden" value="{$default_id}">
                <button class="pull-right" type="submit" onclick="window.location.href='pay.html';">确认订单</button>

				<span class="pull-right">¥<i class="AllPrice">{:keepTwo($sum)}</i></span>

				<p class="pull-right">商品总金额（不含运费）：</p>

			</div>

			<div class="xs_checkout">

				<label class="all_checked checkbox-inline">

					<input type="checkbox" />全选

				</label>

				<div class="pull-right">

					<p>商品总金额（不含运费1）</p>

					<button class="pull-right" type="button" onclick="window.location.href='pay.html';">提交订单</button>

					<span class="pull-right">¥<i class="AllPrice">0</i></span>

				</div>

			</div>

		</div>
		</form>

	</div>

	<!--content end-->
</block>
